package com.harveyguo.nihonngo.model.entity;

import jakarta.persistence.*;
import lombok.Data;

import java.util.Date;

/**
 * 用户教练关系实体
 */
@Entity
@Data
@Table(name = "user_coach_relations")
public class UserCoachRelation extends BaseUserEntity {

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id")
    private User user;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "coach_id")
    private Coach coach;

    private String status; // 关系状态：active, inactive

    private Date startDate; // 开始时间

    private Date endDate; // 结束时间

    private String notes; // 备注
}